<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><spring:message  code="pim"/> - <spring:message  code="homepage"/>
</title>
<link href="<%= request.getContextPath() %>/css/custom.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/v.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.6.2.js"></script>
<%@include file="script/pim-util.jsp" %>
<script type="text/javascript">
function onChangeLocale(lang) {
    var newURL = "";
    var questionMarkLocation = document.URL.indexOf("?");
    if (questionMarkLocation != -1) {
        newURL = document.URL.substring(0, questionMarkLocation); 
    } else {
        newURL = document.URL;
    }
    newURL = newURL + "?locale=" + lang;
   document.location=newURL;
}
</script>
</head>
<body>
<div id="all">
<div id="wrapper">
<div id="mainheader">
  <jsp:include page="include/common/headerNotSignIn.jsp" />
</div> 
<div id="content-wrapper">
 <div id="top-menu">
    <jsp:include page="include/common/topMenuHome.jsp" />
 </div>
 <div id="main-content">
 <div id="company-info">
   <div style="text-align: justify; padding: 30px;">	 
	 <c:choose>
	 <c:when test="${bean.id == 'fields'}">	
	      <div class="v-row">   	  
	      <div class="v-row-left">
	        <span class="v-title"><spring:message  code="company.field"/></span>
	      </div>	      
	      <c:if test="${bean.isAdmin == true}">
	       <div class="v-row-right eighty-half">
	            <span class="v-bt-edit">
		    	   <a href="editCompany.htm?id=fields" ><spring:message  code="edit"/></a>
		    	</span>
	       </div>
	      </c:if>	
	     </div>	                
	     <div class="v-row">
	       <div class="v-description">${bean.company.field}</div>
	     </div>	     
	</c:when>
	<c:when test="${bean.id == 'careers'}">	
	      <div class="v-row">   	  
	      <div class="v-row-left">
	        <span class="v-title"><spring:message  code="company.career"/></span>
	      </div>	      
	      <c:if test="${bean.isAdmin == true}">
	       <div class="v-row-right eighty-half">
	            <span class="v-bt-edit">
		    	   <a href="editCompany.htm?id=careers" ><spring:message  code="edit"/></a>
		    	</span>
	       </div>
	      </c:if>	
	     </div>	                
	     <div class="v-row">
	       <div class="v-description">${bean.company.career}</div>
	     </div>	     
	</c:when>
	<c:when test="${bean.id == 'technologies'}">	
	      <div class="v-row">   	  
	      <div class="v-row-left">
	        <span class="v-title"><spring:message  code="company.technology"/></span>
	      </div>	      
	      <c:if test="${bean.isAdmin == true}">
	       <div class="v-row-right eighty-half">
	            <span class="v-bt-edit">
		    	   <a href="editCompany.htm?id=technologies" ><spring:message  code="edit"/></a>
		    	</span>
	       </div>
	      </c:if>	
	     </div>	                
	     <div class="v-row">
	       <div class="v-description">${bean.company.technology}</div>
	     </div>	     
	</c:when>
	<c:otherwise>
	    <div class="v-row">   	  
	      <div class="v-row-left">
	        <span class="v-title"><spring:message  code="company.overview"/></span>
	      </div>	      
	      <c:if test="${bean.isAdmin == true}">
	       <div class="v-row-right eighty-half">
	            <span class="v-bt-edit">
		    	   <a href="editCompany.htm?id=overview" ><spring:message  code="edit"/></a>
		    	</span>
	       </div>
	      </c:if>	
	     </div>	                
	     <div class="v-row">
	       <div class="v-description">${bean.company.overview}</div>
	     </div>	  
	</c:otherwise>			 
	</c:choose>
   </div>
 </div>
 </div>
</div>
<div class="footer">
    <jsp:include page="include/common/footer.jsp" />
</div>
</div>
</div>
</body>
</html>